<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>lanqukuai</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script type="text/javascript">
    function setRootFontSize() {
      /*获取屏幕的宽度*/
      let width = document.documentElement.clientWidth || document.body.clientWidth
      /*判断屏幕的宽度是否大于414*/
      if (width < 414) {
        /*设置基础字体大小*/
        document.documentElement.style.fontSize = '13px'
      }else {
        document.documentElement.style.fontSize = width / 375 * 13 + 'px'
      }
    }
    setRootFontSize()
    window.addEventListener('resize', function() {
      setRootFontSize()
    }, false)
  </script>
</html>
